"use strict";

var log4js = require('./log4js.js');
module.exports = (function () {
  var nodeEnv = process.env.NODE_ENV || 'development';
  var cfg = require('./' + nodeEnv + '.js');
  if (cfg.log4js) {
    throw new Error('log4js config duplicated');
  }
  cfg.log4js = log4js;
  console.log('-----------config-----------');
  console.log(cfg);
  console.log('-----------config-----------');
  return cfg;
})();